package hu.tortavar2.client.place;

import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class ProductDetailPlace extends MainPlace {

	private String encodedKey = "t";
	
	public ProductDetailPlace() {
	}
	
	public String getEncodedKey() {
		return encodedKey;
	}
	
	@Prefix("dv")
	public static class Tokenizer implements PlaceTokenizer<ProductDetailPlace> {

		@Override
		public ProductDetailPlace getPlace(String token) {
			return new ProductDetailPlace();
		}

		@Override
		public String getToken(ProductDetailPlace place) {
			return place.getEncodedKey();
		}		
	}
}
